package com.its.feign.server.job;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Author xiaxp
 * @Date 12/31/21 11:36
 * @Description
 */
@Configuration
@Slf4j
public class TestSchedule {


    @Scheduled(cron = "0/30 * * * * ?")
    public void test(){
        try {
            Thread.sleep(1500L);
            log.info("TestSchedule test");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
